/*
 *	ApOS (Another Project software for s3c2410)
 *	
 *	This program is free software; you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License version 2 as
 *	published by the Free Software Foundation.
 *			
 *
 */
#ifndef _CPU_H
#define _CPU_H


#define	UserMode	0x10
#define	FIQMode		0x11
#define	IRQMode		0x12
#define	SupervisorMode	0x13
#define	AbortMode	0x17
#define	UndefinedMode	0x1b
#define	SystemMode	0x1f

#define FS_ALIGNMENT	0x3
#define FS_TRANSLATION0 0x5
#define FS_TRANSLATION1 0x7
#define FS_DOMAIN0	0x9
#define FS_DOMAIN1	0xb
#define FS_PERMISSION0	0xd
#define FS_PERMISSION1	0xf
#define FS_EXTERNAL_ABORT0 0x8
#define FS_EXTERNAL_ABORT1 0xa
struct cpu_registers
{
	unsigned int r0;
	unsigned int r1;
	unsigned int r2;
	unsigned int r3;
	unsigned int r4;
	unsigned int r5;
	unsigned int r6;
	unsigned int r7;
	unsigned int r8;
	unsigned int r9;
	unsigned int r10;
	unsigned int r11;
	unsigned int r12;
	unsigned int sp;
	unsigned int lr;
	unsigned int pc;
	unsigned int cpsr;
};

#endif

